<template>
	<view class="cont-box">
		<rich-text :nodes="question"></rich-text>
	</view>
</template>

<script>
	import {formatRichText} from "@/util.js"
	export default {
		data() {
			return {
				question: "",


			}
		},
		onReady() {
			this.getint()
		},
		methods: {
		 getint() {
			 this.$api('api/properties/userAgreement', 'GET', {}).then(res => {
			 	console.log(res.data.content)
				this.question = formatRichText(res.data.content)
			 })
			}
		}
	}
</script>

<style>
	rich-text img {
		max-width: 100%;
		height: auto;
	}

	.cont-box {
		width: 676rpx;
		margin: 20rpx auto 40rpx;
		font-family: Segoe UI, Segoe UI;
		font-weight: 400;
		font-size: 28rpx;
		color: #1C1C1C;
		text-align: left;
		font-style: normal;
		text-transform: none;
	}
</style>
